package com.lhs.satokenAuth;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhs.entity.user.User_role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface RoleMapper extends BaseMapper<User_role> {

    @Select("select role from role where user_id = #{userID}")
    List<String> getRole(Long userID);
}
